<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'status.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<link rel="stylesheet" type="text/css" href="./bamcss/bam.css">
<style type="text/css">
	#home_button {
		
	}
</style>
  </head>
	  
  <body>
  	<div class ="wrap_left">
	  		<a href="<%=basePath%>/bamjsp/dataStatus/userdate.jsp" target="wrap_iframe">
	  		<div onclick="changeCss(this)" name="home_button" id="home_button" class ="wrap_button1" style="margin-top:68%;color:#FFF">用户情况</div></a>
	  		<a href="<%=basePath%>/bamjsp/dataStatus/userlogin.jsp" target="wrap_iframe">
		  	<div onclick="changeCss(this)" name="home_button" id="home_button" class ="wrap_button2" >登入记录</div></a>	
	  		<a href="<%=basePath%>/bamjsp/dataStatus/userinternet.jsp" target="wrap_iframe">
	  		<div onclick="changeCss(this)" name="home_button" id="home_button" class ="wrap_button2">上网记录</div></a>	
	  </div>
	  <div class ="wrap_right">
	   		<iframe class ="wrap_iframe" name="wrap_iframe" src="${pageContext.request.contextPath}/bamjsp/dataStatus/userdate.jsp" frameborder=0 scrolling="no"></iframe>
	  </div>
	  <div style="clear: both;"></div>
	<script type="text/javascript">
	function changeCss(obj){ 
		var alist = document.getElementsByName("home_button");
		for(var i=0;i<alist.length;i++){
			alist[i].style.color = ""; //给所有标签赋原色 
		}
		obj.style.color = "#FFF"; //令当前标签高亮 
	}
	</script>
  </body>
</html>
